import axios, {ResponseData} from 'yuxin-base/src/utils/axios'

// 获取当前用户企业公告信息列表
export const getNoticeFun = (data: object): Promise<ResponseData> => {
	return axios.request({
		url: '/system/notice/list_one',
		data,
		method: 'POST'
	})
}
// 房源相关数量统计
export const getHouseCensus = (): Promise<ResponseData> => {
	return axios.request({
		url: '/analyser/data_center/house/census',
		method: 'get'
	})
}
// 房源状态统计
export const getHouseStatusCensus = (): Promise<ResponseData> => {
	return axios.request({
		url: '/analyser/data_center/house/status_census',
		method: 'get'
	})
}
// 财务费用类型统计
export const getFinanceFeeTypeCensus = (type: any): Promise<ResponseData> => {
	return axios.request({
		url: '/analyser/data_center/finance/fee_type_census?type=' + type,
		method: 'get'
	})
}
// 获取大数据设置
export const biVirtualDataGet = (): Promise<ResponseData> => {
	return axios.request({
		url: '/system/bi_virtual_data/get_data',
		method: 'get'
	})
}
// 获取七天日期
export const getDateList = (day: any): Promise<ResponseData> => {
	return axios.request({
		url: `/system/bi_virtual_data/get_date_list?dateCount=${day}`,
		method: 'get'
	})
}
// 获取水电表用量
export const waterAndElectricityList = (): Promise<ResponseData> => {
	return axios.request({
		url: '/device/WaterAndElectricity/list',
		method: 'get'
	})
}
// 重点人群统计
export const keyGroupsCensus = (): Promise<ResponseData> => {
	return axios.request({
		url: '/analyser/data_center/house/key_groups/census',
		method: 'get'
	})
}
